import {
	httpPost,
	httpGet
} from '../request.js'

/**
 * @title 招聘列表
    page 	1 	是 	string 	页码
	size 	4 	是 	string 	数量
	job 		否 	string 	职位id
	exp 		否 	string 	经验id
	educate_level 		否 	string 	学历id
	company_id 		否 	string 	公司id
	company 		是 	string 	公司名字
	city_code 		是 	string 	城市code
	name 	留学咨 	是 	string 	职位名字
 */
export const getJob = data => httpGet('/job', { ...data, size: data.size || 4})

/**
 * @title 招聘详情
 * @param {} id 招聘id 
 */
export const getJobDetail = id => httpGet(`/job/${id}`)

/**
 * @title 投递简历
 */
export const delivery = job_id => httpPost('/delivery', { job_id })

/**
 * @title 公司详情
 * @param {} id 
 */
export const getCompany = id => httpGet(`/company/${id}`)

/**
 * @title banner图
 */
export const getBanner = () => httpGet('/banner')

/**
 * @title 学历列表
 */
export const getEducate = () => httpGet('/educate')

/**
 * @title 经验列表
 */
export const getExp = () => httpGet('/exp')

/**
 * @title 职位列表
 */
export const jobcate = () => httpGet('/jobcate')

/**
 * @title 行业列表
 */
export const companycate = () => httpGet('/companycate')


/**
 * @title 薪资列表
 */
export const getSalary = () => httpGet('/salary')


/**
 * @title 获取语言列表
 */
export const getLang = () => httpGet('/lang')

/**
 * @title 个人技能
 */
export const getUserSkill = () => httpGet('/tag/1')


/**
 * @title 地区列表
 */
export const getRegion = () => httpGet('/region')
